var WxCore=function () {

} ;
function loadWebAssembly(fileName) {
    return fetch(fileName)
        .then(response => response.arrayBuffer())
        .then(buffer => WebAssembly.compile(buffer))
        .then(module => {return new WebAssembly.Instance(module) });
};

function loadWasmDemo() {
    return loadWebAssembly('wasmdemo_bg.wasm')
        .then(instance => {
            WxCore.prototype.add =instance.exports.add;
            return Promise.resolve();
        });
}


